Skip to content

Conversation

@elasticspoon
Copy link

The text was not marked html_safe thus it would render as Expires <span title="July 12, 2025 19:55">10 minutes ago</span> instead of Expires 10 minutes ago and show an tooltip with the exact time when hovered.

Before:
image

After:
image

Note:

Adding .html_safe within the helper would not work since you need to mark the whole interpolated string "Expires #{bidirectional_time_distance_in_words_with_title(job.blocked_until)}" as HTML safe.

It would be kinda nice to not litter the view with that.

The text was not marked html_safe thus it would render as
`Expires <span title="July 12, 2025 19:55">10 minutes ago</span>`
instead of `Expires 10 minutes ago` and show an tooltip with the
exact time when hovered.
@rosa
Copy link
Member

rosa commented Jul 29, 2025

Ahh, good catch @elasticspoon! And sorry for the delay. Let me think of an alternative so that we don't have to litter the view as you said.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants